﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTRANHUNG.OOP.EXCERCISES.EX01
{
    class MODELS
    {
        /// <summary>
        /// Thực thi kiểm tra xác thực tài khoản
        /// </summary>
        /// <param name="objEntity"></param>
        /// <returns></returns>
        public bool CheckUser(USERENTITY objEntity)
        {
            if (objEntity.UserName.Equals("hungnt")
                && objEntity.PassWord.Equals("654321")) {
                    return true;
            }
            return false;
        }
    }
}
